﻿app.controller('HomeController', ['$scope', 'NoteFactory', function ($scope, NoteFactory) {
    $scope.test = "hello";
    $scope.notes = NoteFactory.notes;
    if ($scope.$parent.status.isLoggedIn) NoteFactory.getNotes();
}]);